<template>
  <div class="orderdetail">
    <h1>订单管理 -- 订单详情</h1>
    <div class="form">
      <el-form ref="form" :model="form" label-width="180px">
        <el-form-item label="订单号" width="200px">
          <el-input v-model="form.orderNo"></el-input>
        </el-form-item>
        <el-form-item label="创建时间">
          <el-input v-model="form.createTime" :rows="5"></el-input>
        </el-form-item>
        <el-form-item label="收件人">
          <el-input v-model="form.receiverName" :rows="5"></el-input>
        </el-form-item>
        <el-form-item label="订单状态">
          <el-input placeholder="请输入内容" v-model="form.statusDesc">
          </el-input>
        </el-form-item>
        <el-form-item label="支付方式">
          <el-input placeholder="请输入内容" v-model="form.paymentTypeDesc">
          </el-input>
        </el-form-item>
        <el-form-item label="订单金额">
          <el-input v-model="form.payment" :rows="5"></el-input>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
import { orderDetail } from '../api/index';
export default {
  data(){
    return {
      form:[],
      kindData:[]
    }
  },
  computed:{
    orderNo(){
      return this.$route.query.orderNo
    }
  },
  created(){
    this.init()
  },
  methods:{
    init(){
      orderDetail({orderNo:this.orderNo}).then(res=>{
        console.log(res);
        if(res.status == 0){
          this.form = res.data
        }
      })
    }
  }
}
</script>

<style>

</style>
